﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Basmus.ReadWrite;
using Basmus.Resources;
using Basmus.Values;
using Basmus.Values.Web;

namespace ExampleWebApplication
{
    public partial class Default : System.Web.UI.Page
    {
        
        protected void Page_Load(object sender, EventArgs e)
        {
           DataBind();
        }

        public string GetUrl()
        {
            var url = LinkUtil.WebLinkService.GetUrl(new Models.Test());
            return url;
        }

        protected string GetUrl2()
        {
            var virtualPath = WebLinkServiceExtensions.GetUrl(LinkUtil.WebLinkService, SchemeKey.Create("old"), new Models.Default { Id = 10 });
            return virtualPath;
        }
    }
}